﻿using UnityEngine;
using System.Collections;

public class ScoreBoard : MonoBehaviour {

	public GUIStyle _style;
	public int _points = 0;

	// Use this for initialization
	void Start () {
	
	}

	// Update is called once per frame
	void Update () {
	}

	void OnGUI () {
		GUI.Label (new Rect (10, 10, 100, 20), "score : " + _points.ToString(), _style);
	}
	public void addScore(int score) {
		_points += score;
	}

	void Awake () {
		DontDestroyOnLoad (transform.gameObject);
	}
}
